﻿<h3>SecondComponent</h3>


<button @onclick="@ShowNotification">Show Notification from Second Component</button>

@code {
    [CascadingParameter]
    protected Notification Notification { get; set; }

    void ShowNotification()
    {
        Notification.Instance.Show(new NotificationModel()
        {
            Text = "From SECOND Component",
            ThemeColor = ThemeColors.Warning,
            CloseAfter = 0,
            Closable = false
        });
    }
}
